package com.bckj.fastboot.core.lang.exception;


import lombok.Getter;
import lombok.Setter;

@Setter
@Getter
public abstract class BaseException extends RuntimeException {
    private int code;

    public BaseException(String message) {
        super(message);
        this.code = 500;
    }

    public BaseException(int code, String message) {
        super(message);
        this.code = code;
    }

}
